<?php

/**
 * 错误处理类
 * 
 */
class QError{
	
	private $error_number	=	0; 	/*错误编码*/
	private $error_content	=	'';	/*错误内容*/
	
	function _construct(){
		self::QError();
	}
	
	/*构造函数*/
	function QError(){
		
	}
	
	/*记录错误*/
	public function add($content, $number = 0){
		if(!empty($content)){
			$this->error_content	=	$content;
		}
		if(!empty($number)){
			$this->error_number		=	$number;	
		}		
	}
	
	/*获取错误内容*/
	public function get_error_content(){
		return $this->error_content;
	}
	
	/*获取错误内容*/
	public function get_error_number(){
		return $this->error_number;
	}	
}

